package com.hatcher.cvte.model;

import java.io.Serializable;

public class Dept implements Serializable {

	private static final long serialVersionUID = 11241234213L;

	private String deptCode;

	private String deptName;

	private String charger1;

	private String charger2;

	private String parentCode;

	public String getDeptCode() {
		return deptCode;
	}

	public void setDeptCode(String deptCode) {
		this.deptCode = deptCode;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getCharger1() {
		return charger1;
	}

	public void setCharger1(String charger1) {
		this.charger1 = charger1;
	}

	public String getCharger2() {
		return charger2;
	}

	public void setCharger2(String charger2) {
		this.charger2 = charger2;
	}

	public String getParentCode() {
		return parentCode;
	}

	public void setParentCode(String parentCode) {
		this.parentCode = parentCode;
	}

	@Override
	public int hashCode() {
		String in = deptCode + deptName + parentCode;
		return in.hashCode();

	}

	@Override
	public boolean equals(Object obj) {
		Dept s = (Dept) obj;
		return deptCode.equals(s.deptCode) && deptName.equals(s.deptName);
	}
}